// <copyright file="SocialNetworking.cs" company="Clever Software">
// Copyright (c) 2013, 2014 All Right Reserved, http://www.cleversoftware.by
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Clever Software</author>
// <email>info@cleversoftware.by</email>
// <date>2014-02-04</date> 
// <summary>CleverCMS source code</summary>

namespace CleverCMS.Core.Web.Extensions
{
    using System.Web;
    using System.Web.Mvc;

    public static class SocialNetworking
    {
        public static string FacebookLikeButton(this HtmlHelper helper, string url)
        {
            const string FacebookAPI = @"<iframe src=""http://www.facebook.com/plugins/like.php?href={0}&amp;layout=standard&amp;show_faces=true&amp;width=350&amp;action=like&amp;colorscheme=light&amp;height=35"" scrolling=""no"" frameborder=""0"" style=""border:none; overflow:hidden; width:350px; height:80px;"" allowTransparency=""true""></iframe>";
            return string.Format(FacebookAPI, HttpUtility.UrlEncode(url));
        }
    }
}